package com.xccwk.page;

import java.util.Map;

public class Student {
	private static final long serialVersionUID = -2448260736229612919L;//序列化id
	private int id;//学生记录的id
	private String stuName;//姓名
	private int age;//年龄
	private int gender;//性别
	private String address;//地址
	public Student(){
		super();
	}
	public Student(int id, String stuName, int age, int gender, String address) {
		super();
		this.id = id;
		this.stuName = stuName;
		this.age = age;
		this.gender = gender;
		this.address = address;
	}
	public Student(Map<String,Object> map){
		this.id = (Integer) map.get("id");
		this.stuName = (String) map.get("stu_name");
		this.age = (Integer) map.get("age");
		this.gender = (Integer) map.get("gender");
		this.address = (String) map.get("address");
	}


}